package co.com.umobile.service;

import java.util.HashMap;

import android.content.Context;
import co.com.umobile.application.GlobalState;
import co.com.umobile.entity.updates.UpdateEntity;

/**
 * @author sergiogranada
 *
 */
public interface UpdateServices {

	/**
	 * returns a map checking if each service should be updated.
	 * @param services services.
	 * @return   HashMap<Integer, Boolean>;
	 */
	HashMap<Integer, Boolean> isDataAvailableForOption(int[] services);
	
	/**
	 * gets an update entity.
	 * @param userName userName.
	 * @param company company.
	 * @param serviceCode serviceCode.
	 * @return UpdateEntity.
	 */
	UpdateEntity getUpdateEntity(String userName, String company, int serviceCode);
	
	/**
	 * returns true if any service is running.
	 * @param context context.
	 * @param globalState globalState.
	 * @return boolean.
	 */
	boolean isAnyServiceRunning(Context context, GlobalState globalState);
	
}
